function remove(hbid){
	$('#myModal').modal('show');
	$.post("../asset/remove_HousingBuilding.action",{"hb.hbid":hbid}, function(result) {
		if(result.msg=="succ"){
			$('#myModal').modal('hide');
			$("#alertinfo").html("住宅楼栋信息删除成功。");
			$("#closewin").bind("click",function(){
				$("#closewin").unbind("click");
				$('#myinfo').modal('hide');
				window.location.reload();
			});
			$('#myinfo').modal('show');
		}else{
			$('#myModal').modal('hide');
			$("#alertinfo").html(result.msg);
			$('#myinfo').modal('show');
		}
	});
}
function conditionExport(){
	var bancode=$("#bancode").val();
	var buildmonth=$("#buildmonth").val();
	var mdept=$("#mdept").val();
	window.location.assign("../asset/exportExcel_HousingBuilding.action?hb.bancode="+bancode+"&hb.buildmonth="+buildmonth+"&hb.mdept="+mdept);
}
function allExport(){
	window.location.assign("../asset/exportExcel_HousingBuilding.action");
}
function conditionPrint(){
	var bancode=$("#bancode").val();
	var buildmonth=$("#buildmonth").val();
	var mdept=$("#mdept").val();
	$("#print_housingbuilding").attr("src","../asset/print_HousingBuilding.action?hb.bancode="+bancode+"&hb.buildmonth="+buildmonth+"&hb.mdept="+mdept);
}
function allPrint(){
	$("#print_housingbuilding").attr("src","../asset/print_HousingBuilding.action");
}